package com.es.www.firstWay;

/**
 * @Created by michangtao
 * @Date 2022/5/16 13:21
 * @Description
 */
public class HouseDirector {

    private Builder builder;

    public HouseDirector(Builder builder) {
        this.builder = builder;
    }

    public House create(){
        builder.buildBasic();
        builder.buildWall();
        builder.buildRoof();
        return builder.getProduct();
    }
}
